package cn.csq.design.structural.bridge;

/**
 * @author csq
 * @date 2022/1/27 12:17:27
 */
public class MainTest {
    public static void main(String[] args) {

        IPhone iPhone = new IPhone();
        iPhone.setSale(new OfflineSale("线下渠道", 9999));

        System.out.println(iPhone.getPhone());

        iPhone.setSale(new OfflineSale("线下渠道", 8888));

        System.out.println(iPhone.getPhone());

        //分离了手机和渠道信息

    }
}
